package cn.zwx.goods.svc.rpc.dto;

import lombok.Data;
import org.apache.dubbo.apidocs.annotations.RequestParam;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;


/**
 * @author zhangwenxue
 */
@Data
public class ModifyCategoryDTO {


    @NotNull(message = "类目id不能为空")
    @RequestParam(value = "类目id",description = "类目id",required = true)
    private Integer id;

    /**
     * 分类名称
     */
    @Length(max = 32,message = "分类名称长度不能低于32位")
    @RequestParam(value = "分类名称",description = "分类名称")
    private String name;

    /**
     * 排序
     */
    @RequestParam(value = "排序",description = "排序")
    private Integer sort;

    /**
     * 上级ID
     */
    @RequestParam(value = "上级ID",description = "上级ID")
    private Integer parentId;
}
